package com.fowo.api.sys.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 创建系统消息
 */
@Data
@Schema(title = "创建系统消息")
public class CreateSysMessage {

    @Schema(title = "消息标题")
    @NotEmpty
    private String title;

    @Schema(title = "消息类型：notification, message, event")
    @NotEmpty
    private String type;

    @Schema(title = "消息状态：todo, processing, urgent, doing")
    @NotEmpty
    private String status;

    @Schema(title = "消息内容，JSON 字符串")
    private String content;

    @Schema(title = "详情链接")
    private String link;

    @Schema(title = "创建者，0 表示平台创建")
    private Long createUserId;

    @Schema(title = "接收者用户编号列表")
    @NotNull
    @NotEmpty
    private List<Long> toUserIds;
}
